#!/bin/bash
echo "Start of configure_drush.sh"

echo "Update php.ini for drush"

sed -i 's/magic_quotes_gpc = .*/magic_quotes_gpc = 0/g' /etc/php5/cli/php.ini
sed -i 's/magic_quotes_runtime = .*/magic_quotes_runtime = 0/g' /etc/php5/cli/php.ini
sed -i 's/magic_quotes_sybase = .*/magic_quotes_sybase = 0/g' /etc/php5/cli/php.ini

echo "Install drush"

pear upgrade pear 
pear channel-discover pear.drush.org 
pear install drush/drush-5.9.0
pear install Console_Table-1.1.5

#cd /path/to/drush/commands
#drush dl densite
  
#export GIT_SSL_NO_VERIFY=1
#git clone https://github.com/diversen/densite.git /usr/share/drush/commands/densite
echo "End of configure_drush.sh"
